package cn.edu.scau.cmi.zhaotingjie.chapter06;

public class Pillar2 {
	Geometry bottom;
	double height;
	Pillar2(Geometry bottom,double height){
		this.bottom = bottom;
		this.height = height;
	}
	public double getVolume() {
		return bottom.getArea()*height;
	}
}
